<? 
echo "<table border=0 bgcolor=#FFFFFF width=100%  height=80%>";
echo "<tr valign=top>";
echo "<td>";
echo "          <br>";
echo "          <br>";
echo "          <form name=Login action=p_faz_login.php method=post target=_top>";

if(isset($_SESSION['logado']))
	 unset($_SESSION['logado']);
if(isset($_SESSION['email_usuario']))
	 unset($_SESSION['email_usuario']);
if(isset($_SESSION['id_usuario']))
	 unset($_SESSION['email_usuario']);
if(isset($_SESSION['tipo_usuario']))
	 unset($_SESSION['email_usuario']);
if(isset($_SESSION['status_usuario']))
	 unset($_SESSION['email_usuario']);

if (isset($mensagem))
{
if ($mensagem == "erro 1")
{
	echo "<p class=\"texto3\">\n";	
	echo A_LANG_LOGIN_MSG1; 
	echo "</p>\n";
}	
elseif ($mensagem == "erro 2")
{
	echo "<p class=\"texto3\">\n";	
	echo A_LANG_LOGIN_MSG2; 		   	
	echo "</p>\n";
}			   
elseif ($mensagem ==  "erro 3")
{
	echo "<p class=\"texto3\">\n";	
	echo A_LANG_LOGIN_MSG3; 
	echo "</p>\n";
}			   
elseif ($mensagem == "erro 4")
{
	echo "<p class=\"texto3\">\n";	
	echo A_LANG_LOGIN_MSG4; 
	echo "</p>\n";
}
}			   
echo "	     	<table border=0>";
echo "		  <tr>";
echo " 			<td align=right>";
echo                        A_LANG_EMAIL.":";
echo "			</td>";
echo "			<td>";
echo "			<p><input class=text type=text name=email size=25>";
if (isset($origem)) echo "			<input  type=hidden name=origem value=".$origem.">";
echo "          </p>";
echo "			</td>";
echo "		  </tr>";
echo "		  <tr>";
echo "			<td align=right>";
echo                        A_LANG_LOGIN_PASS.":";
echo "			</td>";
echo "			<td>";
echo "			   <p><input class=text type=password name=senha size=8></p>";
echo "			</td>";
echo "		  </tr>";
echo "		  <tr>";
echo "			<td>";
echo "				&nbsp";
echo "			</td>";
echo "			<td>";
echo "			   <br>";
echo "	                   <p><INPUT class=button  TYPE=submit value=".A_LANG_LOGIN_START."></p>";
echo "			</td>";
echo "		  </tr>";
echo "	  	</table>";
echo "		</form>";
echo "       </td>";
echo "  </tr>";
echo "</table>";
